package day28_35.day28;

import java.util.Scanner;

public class Main01_2 {
    static class Node{
        int val;
        Node next;

        public Node() {
        }

        public Node(int val) {
            this.val = val;
        }
    }

    public static void main(String[] args) {
        Scanner scn = new Scanner(System.in);
        int n = scn.nextInt();
        Node head = new Node();
        Node node = head;
        for (int i = 0; i < n; i++) {
            node.next = new Node(scn.nextInt());
        }
        int l = scn.nextInt();
        int r = scn.nextInt();

    }
    public static Node reverse(Node head , int l , int r){
        Node dummy = head;
        for (int i = 0; i < l - 1; i++) {
            dummy = dummy.next;
        }
        for (int i = l; i < r; i++) {
            Node cur = dummy.next;
            dummy.next = new Node(dummy.next.val);
            dummy.next.next = dummy.next;
        }
        return dummy;
    }

}
